﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace FarmacieDAL
{
    public static class FarmacieDALManager
    {
        private static FarmacieEntities entitiesContext;

        static FarmacieDALManager()
        {
            string connection = ConfigurationManager.AppSettings["connection"];
            entitiesContext = new FarmacieEntities(connection);
        }

        public static FarmacieEntities EntitiesContext
        {
            get
            {
                return entitiesContext;
            }
        }

        public static void Initialize()
        {
            SubstanteActiveManager.Initialize(entitiesContext);
            ProducatoriManager.Initialize(entitiesContext);
            MedicamenteManager.Initialize(entitiesContext);
            UMManager.Initialize(entitiesContext);
            ArhivaManager.Initialize(entitiesContext);
            StocCriticManager.Initialize(entitiesContext);
            RetetaManager.Initialize(entitiesContext);
            ChitanteManager.Initialize(entitiesContext);
        }
    }
}
